import VueRouter from "vue-router";
import UserNote from "@/components/UserNote";
import WordTable from "@/components/WordTable";
import HomeApp from "@/components/HomeApp";
import LoginApp from "@/components/LoginApp";
import RegApp from "@/components/RegApp";
export default new VueRouter({
    // mode: 'history',
    base: 'note',
    routes:[

        {
            path:"/home",
            component:HomeApp,
            children:[
                {
                    path:"/word",
                    component:WordTable,
                    name:"word"

                }, {
                    //路径
                    path:"/note",
                    //路径匹配的组件
                    component:UserNote,
                    name:"note"
                }
            ]
        },
        {
            path:"/",
            component:LoginApp
        },{
            path:"/reg",
            component:RegApp
        }

    ]
})